Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 3: Building and Grouping Predefined Shapes

../ch03/03fig10.gif
Figure 3.10

A space station

03fig10.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        Shape {
            appearance DEF White Appearance {
                material Material { }
            }
            geometry Box {
                size 10.0 10.0 10.0
            }
        },
        Shape {
            appearance USE White
            geometry Sphere {
                radius 7.0
            }
        },
        Shape {
            appearance USE White
            geometry Cylinder {
                radius 12.5
                height 0.5
            }
        },
        Shape {
            appearance USE White
            geometry Cylinder {
                radius 4.0
                height 20.0
            }
        },
        Shape {
            appearance USE White
            geometry Cylinder {
                radius 3.0
                height 30.0
            }
        },
        Shape {
            appearance USE White
            geometry Cylinder {
                radius 1.0
                height 60.0
            }
        }
    ]
}